#ifndef TEXTURE_H
#define TEXTURE_H
#include <vector>
#include <string>
#include "image.h"

class Texture : public Image {
	public:
		static std::vector<Texture*> AllTextures;
		//Font
		//Error

		std::string Location;
		std::string Name;
		unsigned int ID;
		double XOffset;
		double YOffset;

		Texture(std::string location);
		Texture(std::string location, int x_offset, int y_offset);

		void Draw(double x, double y);
		void Draw(double x, double y, double width, double height);

		virtual ~Texture();
	protected:
	private:
		void init(std::string loc);
		std::string StripName(std::string s);
};
#endif // TEXTURE_H
